Return configuration changes to caller#21
Merged
ChristineWanjau merged 29 commits intomainfrom Jan 8, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the import logic to distinguish between added, modified, and deleted configuration settings, and introduces a new ConfigurationDiff interface that is returned when the dryRun parameter is enabled.
Key changes:
- Introduces
ConfigurationDiffinterface withAdded,Modified, andDeletedarrays - Refactors import logic into
analyzeConfigurationChangesmethod to separate analysis from execution - Modified settings are now tracked separately from additions
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| libraries/azure-app-configuration-importer/src/models.ts | Adds ConfigurationDiff interface and imports required types from @azure/app-configuration |
| libraries/azure-app-configuration-importer/src/index.ts | Exports the new ConfigurationDiff interface |
| libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts | Refactors import logic to distinguish between added/modified/deleted settings and returns ConfigurationDiff when dryRun=true |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/tests/appConfigurationImporter.spec.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/tests/appConfigurationImporter.spec.ts
Outdated
Show resolved
Hide resolved
zhenlan
reviewed
Nov 7, 2025
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
zhenlan
reviewed
Nov 7, 2025
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer-file-source/package.json
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
added 2 commits
December 1, 2025 12:31
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Show resolved
Hide resolved
RichardChen820
approved these changes
Dec 4, 2025
libraries/azure-app-configuration-importer/src/appConfigurationImporter.ts
Outdated
Show resolved
Hide resolved
MaryanneNjeri
approved these changes
Jan 7, 2026
RichardChen820
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change removes the concept of dry-run from the JSImporter and introduces a new approach for exposing configuration changes. Instead of handling the printing of diffs internally, the importer now simply returns the configuration diff, leaving it to the caller to decide how to use it (e.g., print to console or process further).
The previous design tightly coupled the importer with output behavior (printing diffs), which limited flexibility. By returning the diff directly, portal, pipeline tasks or other external callers can decide on how to use the diff.